import axiosData from "@/api/axios";

export default {
  /**
   * @description: 获取设备购买列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/buyEquRecord/queryPageList", params);
  },
  /**
  * @description: 获取设备购买单个记录列表 *代表必填
  * @param {String} equipmentCode  *
  * @return {Array}
  */
  query(params) {
    return axiosData.get(`/v3/agricultural-equipment/v1/buyEquRecord/query?equipmentCode=${params}`);
  },
  /**
   * @description: 新增设备购买
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/buyEquRecord/add", params);
  },
  /**
     * @description: 编辑设备购买
     * @param {Object} params *
     * @return {Object}
     */
  edit(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/buyEquRecord/edit", params);
  },
  /**
     * @description: 批量删除设备购买
     * @param {Object} params *
     * @return {Object}
     */
  delList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/buyEquRecord/deleteBatch", params);
  },
  /**
     * @description: 查询未入账的设备
     * @param {Object} params *
     * @return {Object}
     */
  queryNoInputStandBookEquipments(params) {
    return axiosData.get("/v3/agricultural-equipment/v1/buyEquRecord/queryNoInputStandBookEquipments", params);
  }

};
